import logging

logging.basicConfig(level=logging.DEBUG)
handler = logging.StreamHandler()
formatter = logging.Formatter("[%(module)s][%(funcName)s] - %(message)s")
handler.setFormatter(formatter)

def get_log(log_name):
    logger = logging.getLogger(log_name)
    global handler
    logger.addHandler(handler)
    return logger